* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
    color: #2c3e50;
    background: #f4f6f9;                /* fondo claro suave, puedes cambiar a imagen si quieres */
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 750px;                   /* igual que .contenedor-principal */
    margin: 0 auto 60px;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #e0e0e0;
    position: relative;
}

/* Encabezado superior (si quieres agregar uno con botones) */
.encabezado-botones {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.encabezado-botones button {
    margin: 8px;
    padding: 10px 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.encabezado-botones button:hover {
    background: #003366;
    transform: scale(1.05);
}

/* Título principal */
h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #c0392b;                     /* rojo característico */
    margin-bottom: 30px;
}

/* Etiquetas */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

/* Select y Inputs */
select,
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

input[readonly] {
    background: #ecf0f1;
    color: #2c3e50;
    cursor: default;
}

/* Contenedor de medidas (flex) */
.medidas {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.medida-item {
    flex: 1;
}

.medida-item label {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.medida-item input {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 14px;
}





footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-top: 40px;
}

/* Responsivo */
@media (max-width: 600px) {
    .container {
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .medidas {
        flex-direction: column;
        gap: 20px;
    }
    
    button {
        padding: 12px;
    }
}




.fila-botones {
    display: flex;
    justify-content: space-between;   /* distribuye los extremos */
    align-items: center;
    margin: 30px 0;
    gap: 20px;                        
    max-width: 900px;                
    margin-left: auto;
    margin-right: auto;
}

/* Botones iguales */
.fila-botones a,
.fila-botones .btn,
.fila-botones .btn2 {
    flex: 1;                         
    max-width: 220px;                 
    text-align: center;
    padding: 15px 2px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Hover para todos */
.fila-botones a:hover,
.fila-botones .btn:hover,
.fila-botones .btn2:hover {
    background-color: #2075D5;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(32, 117, 213, 0.3);
}
